const path = require('path');
const webpack = require('webpack');
module.exports = {
    // webpack 配置
    webpack: {
        // 配置别名
        alias: {
            '@': path.resolve(__dirname, 'src'),
        },
        plugins: [
            new webpack.ProvidePlugin({
                'window.Quill': 'quill/dist/quill.js',
                Quill: 'quill/dist/quill.js'
            })
        ],
    },
    devServer: {
        port: 3002,
        open: false, // 启动项目后是否打开浏览器
    }
}